package com.film.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.film.domain.FilmOffice;

public class FilmOfficeRowMapper implements RowMapper<FilmOffice>{

	@Override
	public FilmOffice mapRow(ResultSet res, int arg1) throws SQLException {
		FilmOffice office = new FilmOffice();
		office.setOffId(res.getInt("off_id"));
		office.setOffName(res.getString("off_name"));
		return office;
	}

}
